package org.aphasia4j.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Class representing a patient.
 * 
 * @author hillger.t
 */
@Entity
public class Patient extends Model {
  @Column(nullable = false)
  private String lastname;

  @Column(nullable = false)
  private String firstname;

  @Temporal(value = TemporalType.DATE)
  @Column(nullable = false)
  private Date birthday;

  public String getLastname() {
    return lastname;
  }

  public void setLastname(String lastname) {
    this.lastname = lastname;
  }

  public String getFirstname() {
    return firstname;
  }

  public void setFirstname(String firstname) {
    this.firstname = firstname;
  }

  public Date getBirthday() {
    return birthday;
  }

  public void setBirthday(Date birthday) {
    this.birthday = birthday;
  }
}
